package com.bdqn.wang.dao;

import com.bdqn.wang.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    User loginUser(User user);
    int count();

    List<User> findAll();

    User findUserById(@Param("id") Integer id);

    List<User> findAllByCondition(User user);

    List<User> findAllByConditionAndPage(@Param("address") Integer address, @Param("from") Integer from, @Param("pageSize") Integer pageSize);

    int addUser(User user);

    int delUser(@Param("id") Integer id);

    int removeUsers(String[] id);

    int updateUser(User user);

}
